<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>欢迎进入用户系统！</title>
<style type="text/css">
.div1 {
   
	height:70%;
	width:70%;
	align:center;
}
a:link {
text-decoration: none;
color:#000000;
}
a:visited {
text-decoration: none;
color:#8b008b;
}
a:hover {
text-decoration: none;
color:#800080;
}
a:active {
text-decoration: none;
}
</style>
	<script src="../../js/utils.js"></script>
	<script src="../../js/jquery-1.11.3.js"></script>
	<script src="../../js/bootstrap.min.js"></script>

</head>
<body>
 <table height="550px" width="960px" border="0" align="center" cellspacing="0">
   <tr>
	<td height="25%" width="100%" bgcolor="#eeeeee" align="center">
		<h1>欢迎进入用户系统！</h1>
	</td>
   </tr>
   <tr>
	<td height="75%" width="100%" align="center"  bgcolor="#4169E1">
	<div class="div1">
		<br><br><br>
		<form>
		<font size='5px' color='white'><b> 用 户：</b></font><input type='text'  id = 'user_name' style="height:25px;width:200px;">
		<a href="三级目录/user-register.html">&nbsp;<font>开户</font></a>
		<br><br>
		<font size='5px' color='white'><b> 密 码：</b></font><input type='password' id = 'user_pwd' style="height:25px;width:200px;">
		<a href="三级目录/user-find.html">&nbsp;<font>找回</font></a>
		<br> <br><br><br><br>
		
		 <button style="height:35px; width: 80px;">
			 <a class="user_log btn btn-primary" href="#">登录</a>
		 </button> &nbsp; &nbsp;
		 
		 <button style="height:35px; width: 80px;">
			<font size="4px"><a href="../index.html" >返  回</a></font>
			</button>
		
		</form>
		
	 </div>
	 </td>
	</tr>
	</table>

 <script>
	 $(function () {
		 $('.user_log').on('click', function () {
			 var u_name = $('#user_name').val();
			 var p_word = $('#user_pwd').val();
			 AjaxIO.post('/user/login.do', {username: u_name, password: p_word}, function (result) {
				 if (result.message == "success") {
					 SetCookie("userId", result.id);
					 window.location.href = '三级目录/user-login1.html';
				 }
			 });
		 })
	 });
 </script>
</body>
</html>